home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
mquery
/
mform1.frm
< prev
next >
Wrap
Text File
|
1995-05-07
|
5KB
|
189 lines
VERSION 2.00
Begin Form Form1
AutoRedraw = -1 'True
BackColor = &H00FF0000&
BorderStyle = 0 'None
Caption = " Visual Basic Ad-Hoc Query Sample"
ClientHeight = 4920
ClientLeft = 1755
ClientTop = 2235
ClientWidth = 8520
ClipControls = 0 'False
ControlBox = 0 'False
ForeColor = &H00FF0000&
Height = 5325
Icon = MFORM1.FRX:0000
Left = 1695
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4920
ScaleWidth = 8520
Top = 1890
Width = 8640
Begin PictureBox CMD1
Height = 480
Left = 7725
ScaleHeight = 450
ScaleWidth = 1170
TabIndex = 7
Top = 4065
Width = 1200
End
Begin CommandButton cmdExit
Caption = "&Exit"
Height = 375
Left = 4440
TabIndex = 2
Top = 3960
Width = 1335
End
Begin CommandButton cmdContinue
Caption = "&Continue"
Height = 375
Left = 2355
TabIndex = 1
Top = 3975
Width = 1335
End
Begin Label Label5
Alignment = 2 'Center
AutoSize = -1 'True
BackColor = &H00FF0000&
Caption = "(This sample uses NWIND.MDB for Stored Queries)"
ForeColor = &H00FFFFFF&
Height = 195
Left = 1875
TabIndex = 6
Top = 2925
Width = 4395
End
Begin Label Label4
Alignment = 2 'Center
AutoSize = -1 'True
BackColor = &H00FF0000&
Caption = "Inner && Outer Joins and Column Order"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FFFFFF&
Height = 300
Left = 1830
TabIndex = 5
Top = 2505
Width = 4635
End
Begin Label Label3
Alignment = 2 'Center
AutoSize = -1 'True
BackColor = &H00FF0000&
Caption = "Store/Load/Delete Queries && Exec SQL Statements"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 12
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FFFFFF&
Height = 300
Left = 1080
TabIndex = 4
Top = 2160
Width = 6225
End
Begin Label Label2
Alignment = 2 'Center
BackColor = &H00FF0000&
Caption = "Extracted from Microsoft's Visdata by Robert E. Smythe"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FFFFFF&
Height = 765
Left = 645
TabIndex = 3
Top = 3375
Width = 6945
End
Begin Label Label1
Alignment = 2 'Center
BackColor = &H00FF0000&
Caption = "MQUERY ENGINE FOR VISUAL BASIC Release 1.0 May 24, 1994"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 24
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000FF&
Height = 1935
Left = 1380
TabIndex = 0
Top = 240
Width = 5655
End
End
Sub cmdContinue_Click ()
Dim Connect As String, DataBaseName As String
On Error GoTo OpenError
CMD1.Filter = "Access DBs (*.mdb)|*.mdb"
CMD1.FilterIndex = 1
CMD1.Filename = gstDBName '""
CMD1.CancelError = True
CMD1.Action = 1
If CMD1.Filename <> "" Then
gstDBName = CMD1.Filename
Else
Exit Sub
End If
Connect = ""
DataBaseName = gstDBName
Set gCurrentDB = OpenDatabase(DataBaseName, False, True, Connect)
RefreshTables fQuery.cTableList, True
GoTo OpenEnd
OpenError:
ResetMouse Me
'gfDBOpenFlag = False
gstDBName = ""
gstDataType = ""
If Err <> 32755 Then 'check for common dialog cancelled
ShowError
End If
Resume OpenEnd
OpenEnd:
fQuery.Show
Unload Me
End Sub
Sub cmdExit_Click ()
End
End Sub
Sub Form_Load ()
form1.Left = (screen.Width - form1.Width) / 2
form1.Top = (screen.Height - form1.Height) / 2
End Sub